<%= items_menu('Listed Bills', [(link_to_remote (image_tag 'icons/add.png'), :url => { :action => 'add' })]) %>

<% if current_user.bills.empty? -%>
<h4>You have no listed bills.</h4>
<% else -%>
  <div class="item heavy">
    <div id="options">&nbsp;</div>
    <div id="name">Name</div>
    <div id="details">Details</div>
  </div>
  <% current_user.bills.sort { |x,y| x.due <=> y.due }.each do |bill| -%>
    <%= render :partial => 'listed_bill', :object => bill %>
  <% end -%>
<% end -%>

<div style="clear: both;"></div>

<div class="form" id="new-bill"></div>
